import request from '@/utils/request'

// 封装评论或回复接口
export const commentAPI = params => {
  return request({
    url: '/v1_0/comments',
    params
  })
}

// 封装发布评论的接口
export const sendAPI = (data) => {
  return request({
    url: '/v1_0/comments',
    method: 'post',
    data
  })
}
